package com.edu.neusoft.furniture_sale.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.edu.neusoft.furniture_sale.entity.Useraddresses;
import com.edu.neusoft.furniture_sale.mapper.UserAddressMapper;
import com.edu.neusoft.furniture_sale.service.UseraddressesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 用户收货地址信息表(Useraddresses)表服务实现类
 *
 * @author makejava
 * @since 2024-12-09 20:07:06
 */
@Service
public class UseraddressesServiceImpl extends ServiceImpl<UserAddressMapper, Useraddresses> implements UseraddressesService {

    @Autowired
    private UserAddressMapper userAddressMapper;

    @Override
    public List<Useraddresses> findByPage(int pageNum, int pageSize, Long id) {
        List<Useraddresses> useraddressesList = userAddressMapper.selectByPageAndId(pageNum, pageSize, id);
        return useraddressesList;
    }
}

